package com.college.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.college.dao.impl.CourseDetailsDaoImpl;
import com.college.domain.CourseDetails;
import com.college.service.CourseDetailsService;

public class CourseDetailsServiceImpl implements CourseDetailsService{

	@Autowired
	private CourseDetailsDaoImpl courseDetailsDao;
	
	@Override
	public boolean addCourseDetails(CourseDetails courseDetails) {
		
		return courseDetailsDao.addCourse(courseDetails);
	}

	@Override
	public CourseDetails getCourseDetailsForCourseCode(String courseCode) {

	     return courseDetailsDao.getCourseDetailsForCourseCode(courseCode);
		
	}

	@Override
	public boolean updateCourseDetails(CourseDetails courseDetails) {

        return courseDetailsDao.updateCourse(courseDetails);
	}

}
